package com.huifaapp.mall.bean;

import java.util.List;

/**
 * Created by mac on 2017/12/19.
 */

public class RedBagBean {


    /**
     * msg : 请求成功！
     * code : 10000
     * data : [{"amount":110,"name":"从成都出差","startTime":"2017-12-13","id":"111111","endTime":"2018-03-09","state":1,"useCond":300,"type":"red"},{"amount":20,"name":"大成水果店红包","startTime":"2017-12-14","id":"d500286345e04e70adc7c72bf15ccbe8","endTime":"2018-01-28","state":0,"useCond":100,"type":"red"},{"amount":10,"name":"满减","startTime":"2017-12-12","id":"6ffd43437d834bfcbb59d6e1e0dd5823","endTime":"2018-01-27","state":0,"useCond":100,"type":"red"},{"amount":12,"name":"洽洽满减券","startTime":"2018-01-09","id":"1dd63f6e848a4a4ab5b67925195319d9","endTime":"2018-01-26","state":0,"useCond":100,"type":"red"}]
     */

    private String msg;
    private String code;
    private List<DataBean> data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * amount : 110.0
         * name : 从成都出差
         * startTime : 2017-12-13
         * id : 111111
         * endTime : 2018-03-09
         * state : 1
         * useCond : 300.0
         * type : red
         */

        private double amount;
        private String name;
        private String startTime;
        private String id;
        private String endTime;
        private int state;
        private double useCond;
        private String type;

        public double getAmount() {
            return amount;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getStartTime() {
            return startTime;
        }

        public void setStartTime(String startTime) {
            this.startTime = startTime;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public double getUseCond() {
            return useCond;
        }

        public void setUseCond(double useCond) {
            this.useCond = useCond;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }
}
